<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="产品编号范围" prop="GWAP001">
                <!--<el-select v-model="form.GWAP001" size="small" placeholder="请选择产品编号" :disabled="!isAdd">
                    <el-option v-for="item in selectOptions.options1"
                               :key="item.GWAM001"
                               :label="item.GWAM001 + item.GWAML003"
                               :value="item.GWAM001">
                    </el-option>
                </el-select>-->
                <el-input v-model="form.GWAP001">
                    <i class="el-icon-search el-input__icon" @click="openCp" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="税种" prop="GWAP014">
                <el-select v-model="form.GWAP014" size="small" placeholder="请选择税种">
                    <el-option v-for="item in selectOptions.options2"
                               :key="item.GWEA001"
                               :label="item.GWEA001 + item.GWEA002"
                               :value="item.GWEA001">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="客户类型范围" prop="GWAP006">
                <el-select v-model="form.GWAP006" size="small" placeholder="请选择客户类型范围">
                    <el-option v-for="item in selectOptions.options3"
                               :key="item.GWAF001"
                               :label="item.GWAF001 + item.GWAFL003"
                               :value="item.GWAF001">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="供应方" prop="GWAPSITE">
                <el-input v-model="form.GWAPSITE"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="币别" prop="GWAP005">
                <el-select v-model="form.GWAP005" size="small" placeholder="请选择币别">
                    <el-option v-for="item in selectOptions.options4"
                               :key="item.GWAC001"
                               :label="item.GWAC001 + item.GWACL003"
                               :value="item.GWAC001">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="单位" prop="GWAP004">
                <el-select v-model="form.GWAP004" size="small" placeholder="请选择单位">
                    <el-option v-for="item in selectOptions.options5"
                               :key="item.GWAB001"
                               :label="item.GWAB001 + item.GWABL003"
                               :value="item.GWAB001">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="生效日期" prop="GWAP007">
                <el-date-picker
                        v-model="form.GWAP007"
                        type="date"
                        placeholder="请选择生效日期"
                        value-format="yyyy-MM-dd" style="width:100%;">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="失效日期" prop="GWAP008">
                <el-date-picker
                        v-model="form.GWAP008"
                        type="date"
                        placeholder="请选择失效日期"
                        value-format="yyyy-MM-dd" style="width:100%;">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="价格维护" prop="GWAP100">
                <el-input v-model="form.GWAP100"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="有效">
                <el-select v-model="form.GWAPACTI">
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwai510_edit"], $.noop);
</script>